import React from 'react';

class ToolButton extends React.Component{
  static propTypes: {
    styleName: PropTypes.string.isRequired,
    label: PropTypes.string.isRequired,
    clickHandler: PropTypes.func.isRequired
  }
  setZoom(z) {
    this.refs.zoom.innerHTML = z;
  }
  render() {
    let {styleName} = this.props;
    let btnclassname = 'btn-tool ' + styleName;
    return (
      <div className={btnclassname} onClick={this.props.clickHandler}>
        <span>{this.props.label}</span>
      </div>
    );
  }
}; 

export default ToolButton;





